package entity

type User struct {
	Id       int    `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"`
	Username string `json:"username" gorm:"column:user_name;type:varchar(20);not null;unique"`
	Password string `json:"password" gorm:"column:password;type:varchar(20);not null"`
}

func (User) TableName() string {
	return "t_go_user"
}
